package com.velocity.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.velocity.entity.User;
import com.velocity.mapper.UserMapper;
import com.velocity.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 * @author lijingyang
 * @Title:
 * @Package
 * @Description:
 * @date 2021/7/28 15:15
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getUserListLikeName(String nickName) {

        return userMapper.getUserListLikeName(nickName);
    }

    @Override
    public boolean saveBatch(Collection<User> entityList) {
        return super.saveBatch(entityList);
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<User> entityList) {
        return super.saveOrUpdateBatch(entityList);
    }

    @Override
    public boolean update(Wrapper<User> updateWrapper) {
        return super.update(updateWrapper);
    }

    @Override
    public boolean updateBatchById(Collection<User> entityList) {
        return super.updateBatchById(entityList);
    }

    @Override
    public User getOne(Wrapper<User> queryWrapper) {
        return super.getOne(queryWrapper);
    }

    @Override
    public int count() {
        return super.count();
    }

    @Override
    public List<User> list() {
        return super.list();
    }

}